setGlobalDuration(10)

def printBeat():
    print ti1.getBeat()

ti1 = pattern(0.125, printBeat, [1,1,2])
ti1.start()
ti1.play()

startCsound()

